package com.zues.controller;

import com.zues.entity.User;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("user")
public class UserController {


    @GetMapping("toFrom")
    public String toFrom(){
        return "userForm";
    }

    @RequestMapping("/addUser")
    public String save(User user){
        System.out.println(user);
        return "success";
    }

}
